import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router,Route} from 'react-router-dom';
import './index.css';
import App from './App';
import Question from './question';
import Upos from './upos';
import Pos from './pos';
import PosApp from "./posApp";
import Chat from "./chat";
import * as serviceWorker from './serviceWorker';

ReactDOM.render(
  <React.StrictMode>
      <Router>
          {/* 首页路由 */}
          <Route exact path="/" component={App} />
          {/* 我的页面路由 */}
          <Route exact path="/question" component={Question} />
          <Route exact path="/upos" component={Upos} />
          <Route exact path="/pos" component={Pos} />
          <Route exact path="/posApp" component={PosApp} />
          <Route exact path="/chat" component={Chat} />
      </Router>,
  </React.StrictMode>,
  document.getElementById('root')
);


// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
